<table class="table table-striped table-bordered">
	<thead>
		<tr>
			<th class="ajax"><?php echo $this->Paginator->sort('id'); ?></th>
			<th class="ajax"><?php echo $this->Paginator->sort('username'); ?></th>
			<th class="ajax"><?php echo $this->Paginator->sort('created'); ?></th>					  
			<th class="ajax"><?php echo $this->Paginator->sort('modified'); ?></th>					  
			<th>Actions</th>
		</tr>
  </thead> 
  <tbody>
	<?php foreach ($users as $user): ?>
	<tr>
		<td ><?php echo h($user['User']['id']); ?>&nbsp;</td>
		<td class="center"><?php echo h($user['User']['username']); ?>&nbsp;</td>
		<td class="center"><?php echo h($user['User']['created']); ?>&nbsp;</td>
		<td class="center"><?php echo h($user['User']['modified']); ?>&nbsp;</td>
		<td class="center">
			<a class="btn btn-success" href="<?php echo $this->Html->url(array('action' => 'view', $user['User']['id'], 'admin' => true)); ?>">
				<i class="icon-zoom-in icon-white"></i>  
				View                                            
			</a>
			<a class="btn btn-info" href="<?php echo $this->Html->url(array('action' => 'edit', $user['User']['id'], 'admin' => true)); ?>">
				<i class="icon-edit icon-white"></i>  
				Edit                                            
			</a>
			<a class="api btn btn-danger" href="<?php echo $this->Html->url(array('action' => 'delete', $user['User']['id'], 'api' => true)); ?>">
				<i class="icon-trash icon-white"></i> 
				Delete
			</a>
		</td>					
	</tr>
	<?php endforeach; ?>			  
	</tbody>		
</table>
<div class="row-fluid">
	<div class="span12">
		<div><?php echo $this->Paginator->counter(array(
				'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
				)); ?>
		</div>
	</div>
	<div class="span12 center">
		<div class="pagination">
			<ul>
			<?php
				echo $this->Paginator->numbers(array(
				    'separator' => '',
				    'currentClass' => 'active',
					'currentTag' => 'a',
				    'tag' => 'li',
					'class' => 'ajax'
				));
			?>
			</ul>
		</div>				
	</div>
</div>